package com.hsav.kcxb.utils;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by zhao on 2017/1/8.
 */

public abstract class MySpaceDesc extends RecyclerView.ItemDecoration{

//    private final int mSpace;
//
//    public MySpaceDesc(int space){
//        this.mSpace = space;
//    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        handleOffSet(outRect, view, parent, state);
    }

    protected abstract void handleOffSet(Rect outRect, View view, RecyclerView parent, RecyclerView.State state);

}
